<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>公共通讯薄</title>
<!--<import type="js" file="js.query" />
<script type='text/javascript' src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
-->
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<import type="css" file="css.form" />
<import type="css" file="css.global" />
</head>
<body>
<body class="bodycolor" topmargin="5" >
<div id="form">
  <form action="__APP__/AddressBook/save" method="post" name="form1" onsubmit="return CheckForm();">
    <div class="search"><b>&nbsp;员工信息</b></div>
 <table>
    <tr>
      <td class="titlename"> 姓名：</td>
      <td>
        <input type="text" name="username" value="{$data.username}" >
      </td>
    </tr>
    <tr>
      <td class="titlename"> 部门：</td>
      <td>
      	<input type="text" name="department" value="{$data.department}">
      </td>
    </tr>
    <tr>
      <td class="titlename"> 职位：</td>
      <td>
      	<input type="text" name="post" value="{$data.post}">
      </td>
    </tr>
    <tr>
      <td class="titlename"> 固定电话：</td>
      <td>
      	<input type="text" name="phone" value="{$data.phone}">
      </td>
    </tr>
    <tr>
      <td class="titlename"> 手机：</td>
      <td>
        <input type="text" name="tel" size="50" value="{$data.tel}" ><font color="red">多个手机号请用半角英文逗号";"隔开</font>
      </td>
    </tr>
    
    <tr>
      <td class="titlename"> 电子邮件：</td>
      <td>
        <input type="text" name="email" size="50" value="{$data.email}"><font color="red">多个邮箱请用半角英文逗号";"隔开</font>
      </td>
    </tr>

    <tr>
      <td class="titlename"> QQ号码：</td>
      <td>
        <input type="text" name="qq" value="{$data.qq}" >
      </td>
    </tr>
    <tr>
      <td class="titlename"> 工作事务：</td>
      <td>
      	<textarea rows="2" cols="40" name="work_content">{$data.work_content}</textarea>
      </td>
    </tr>
  </table>
	<div style="padding: 10px 155px;">
		<input type="hidden" value="{$data.id}" name="id" >
        <input type="submit" value="保存" class="submit">
        <input type="button" value="返回" class="button" onclick="back();">
    </div>
</form>
</div>
</body>
<script type="text/javascript">
function CheckForm(){
	if($("input[name='username']").val() == ''){ alert("姓名不能为空！"); return false; }
	if($("input[name='department']").val() == ''){ alert("部门不能为空！"); return false; }
	if($("input[name='post']").val() == ''){ alert("职务不能为空！"); return false; }
}
</script>
</html>